package com.phoenix.service.impl;

import com.phoenix.entity.MemberChampionship;
import com.phoenix.mapper.MemberChampionshipMapper;
import com.phoenix.service.MemberChampionshipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MemberChampionshipServiceImpl implements MemberChampionshipService {
    @Autowired
    MemberChampionshipMapper memberChampionshipMapper;

    @Override
    public Boolean addMemberChampionship(MemberChampionship memberChampionship) {
        return memberChampionshipMapper.addMemberChampionship(memberChampionship);
    }

    @Override
    public Boolean memberChampionshipDelete(List<String> idList) {
        return memberChampionshipMapper.memberChampionshipDelete(idList);
    }

    @Override
    public Boolean memberChampionshipDeleteSingle(String id) {
        return memberChampionshipMapper.memberChampionshipDeleteSingle(id);
    }

    @Override
    public List<MemberChampionship> selectNSearch(Map<String, Object> search) {
        return memberChampionshipMapper.selectNSearch(search);
    }

    @Override
    public List<MemberChampionship> selectNSearchForUser(Map<String, Object> search) {
        return memberChampionshipMapper.selectNSearchForUser(search);
    }

    @Override
    public MemberChampionship getMemberChampionshipByID(Integer ID) {
        return memberChampionshipMapper.getMemberChampionshipByID(ID);
    }

    @Override
    public Boolean updateMemberChampionship(MemberChampionship memberChampionship) {
        return memberChampionshipMapper.updateMemberChampionship(memberChampionship);
    }
}
